package com.insideClass;

import sun.reflect.generics.tree.Tree;

import java.util.Random;
import java.util.SortedSet;
import java.util.TreeSet;

/**
 * @author 13699
 */
public class SortedSetOfInteger {
    public static void main(String[] args) {
        Random rand=new Random(47);
        SortedSet<Integer> intset=new TreeSet<>();
        for(int i=0;i<10000;i++){
            intset.add(rand.nextInt());
        }
        System.out.println(intset);
    }
}
